.TH "Tools::WebClient" 3 "Sun Apr 10 2011" "Version 1.0" "1101" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Tools::WebClient \- 
.SH SYNOPSIS
.br
.PP
.SS "公有成员"

.in +1c
.ti -1c
.RI "\fBWebClient\fP ()"
.br
.RI "\fI创建WebClient的实例 \fP"
.ti -1c
.RI "string \fBGetHtml\fP (string url)"
.br
.RI "\fI获取网页源代码 \fP"
.ti -1c
.RI "void \fBDownloadFile\fP (string url, string filename)"
.br
.RI "\fI下载文件 \fP"
.ti -1c
.RI "byte[] \fBGetData\fP (string url)"
.br
.RI "\fI从指定URL下载数据 \fP"
.ti -1c
.RI "string \fBPost\fP (string url, string postData)"
.br
.RI "\fI向指定URL发送文本数据 \fP"
.ti -1c
.RI "string \fBPost\fP (string url, byte[] postData)"
.br
.RI "\fI向指定URL发送字节数据 \fP"
.ti -1c
.RI "string \fBPost\fP (string url, \fBMultipartForm\fP mulitpartForm)"
.br
.RI "\fI向指定网址发送mulitpart编码的数据 \fP"
.in -1c
.SS "属性"

.in +1c
.ti -1c
.RI "int \fBBufferSize\fP\fC [get, set]\fP"
.br
.RI "\fI设置发送和接收的数据缓冲大小 \fP"
.ti -1c
.RI "WebHeaderCollection \fBResponseHeaders\fP\fC [get]\fP"
.br
.RI "\fI获取响应头集合 \fP"
.ti -1c
.RI "WebHeaderCollection \fBRequestHeaders\fP\fC [get]\fP"
.br
.RI "\fI获取请求头集合 \fP"
.ti -1c
.RI "WebProxy \fBProxy\fP\fC [get, set]\fP"
.br
.RI "\fI获取或设置代理 \fP"
.ti -1c
.RI "Encoding \fBEncoding\fP\fC [get, set]\fP"
.br
.RI "\fI获取或设置请求与响应的文本编码方式 \fP"
.ti -1c
.RI "string \fBRespHtml\fP\fC [get, set]\fP"
.br
.RI "\fI获取或设置响应的html代码 \fP"
.ti -1c
.RI "CookieContainer \fBCookieContainer\fP\fC [get, set]\fP"
.br
.RI "\fI获取或设置与请求关联的Cookie容器 \fP"
.in -1c
.SS "事件"

.in +1c
.ti -1c
.RI "EventHandler< \fBUploadEventArgs\fP > \fBUploadProgressChanged\fP"
.br
.ti -1c
.RI "EventHandler< \fBDownloadEventArgs\fP > \fBDownloadProgressChanged\fP"
.br
.in -1c
.SH "构造及析构函数文档"
.PP 
.SS "Tools.WebClient.WebClient ()"
.PP
创建WebClient的实例 
.SH "成员函数文档"
.PP 
.SS "void Tools.WebClient.DownloadFile (string url, string filename)"
.PP
下载文件 \fB参数:\fP
.RS 4
\fIurl\fP 文件URL地址
.br
\fIfilename\fP 文件保存完整路径
.RE
.PP

.SS "byte [] Tools.WebClient.GetData (string url)"
.PP
从指定URL下载数据 \fB参数:\fP
.RS 4
\fIurl\fP 网址
.RE
.PP
\fB返回:\fP
.RS 4
.RE
.PP

.SS "string Tools.WebClient.GetHtml (string url)"
.PP
获取网页源代码 \fB参数:\fP
.RS 4
\fIurl\fP 网址
.RE
.PP
\fB返回:\fP
.RS 4
.RE
.PP

.SS "string Tools.WebClient.Post (string url, string postData)"
.PP
向指定URL发送文本数据 \fB参数:\fP
.RS 4
\fIurl\fP 网址
.br
\fIpostData\fP urlencode编码的文本数据
.RE
.PP
\fB返回:\fP
.RS 4
.RE
.PP

.SS "string Tools.WebClient.Post (string url, \fBMultipartForm\fP mulitpartForm)"
.PP
向指定网址发送mulitpart编码的数据 \fB参数:\fP
.RS 4
\fIurl\fP 网址
.br
\fImulitpartForm\fP mulitpart form data
.RE
.PP
\fB返回:\fP
.RS 4
.RE
.PP

.SS "string Tools.WebClient.Post (string url, byte[] postData)"
.PP
向指定URL发送字节数据 \fB参数:\fP
.RS 4
\fIurl\fP 网址
.br
\fIpostData\fP 发送的字节数组
.RE
.PP
\fB返回:\fP
.RS 4
.RE
.PP

.SH "属性文档"
.PP 
.SS "int Tools.WebClient.BufferSize\fC [get, set]\fP"
.PP
设置发送和接收的数据缓冲大小 
.SS "CookieContainer Tools.WebClient.CookieContainer\fC [get, set]\fP"
.PP
获取或设置与请求关联的Cookie容器 
.SS "Encoding Tools.WebClient.Encoding\fC [get, set]\fP"
.PP
获取或设置请求与响应的文本编码方式 
.SS "WebProxy Tools.WebClient.Proxy\fC [get, set]\fP"
.PP
获取或设置代理 
.SS "WebHeaderCollection Tools.WebClient.RequestHeaders\fC [get]\fP"
.PP
获取请求头集合 
.SS "string Tools.WebClient.RespHtml\fC [get, set]\fP"
.PP
获取或设置响应的html代码 
.SS "WebHeaderCollection Tools.WebClient.ResponseHeaders\fC [get]\fP"
.PP
获取响应头集合 

.SH "作者"
.PP 
为1101，由Doyxgen通过分析源代码自动生成。
